var gulp=require("gulp");
var uglify=require('gulp-uglify');
var clean = require('gulp-clean');

gulp.task('jsmin', function () {
    gulp.src(['src/**/*.js']) //多个文件以数组形式传入
        .pipe(uglify())
        .pipe(gulp.dest('dist/js'));
});
gulp.task('clean', function () {
    return gulp.src('dist', {read: false})
        .pipe(clean());
});